import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 公共css样式文件
import '@/assets/css/common.css'
// 淘宝无限适配
import '@/assets/js/flexible.js'

// 导入vant
import { Empty, Tabbar, TabbarItem, Icon, Swipe, SwipeItem, Lazyload, NavBar, Button, Form, Field, ShareSheet, Search, AddressEdit,  } from 'vant';
import { Badge } from 'vant';
import { Dialog } from 'vant';

// 注册vant组件
Vue.use(Dialog);
Vue.use(Badge);
Vue.use(Empty);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Icon);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Lazyload);
Vue.use(NavBar);
Vue.use(Button);
Vue.use(Form);
Vue.use(Field);
Vue.use(ShareSheet);
Vue.use(Search);
Vue.use(AddressEdit);

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
